#ifndef __BOARD_H
#define __BOARD_H
#include <stdio.h>
#include "project_config.h"
#include "bsp.h"
#include "bsp_gpio.h"



#if (BOARD_LIGHT_EN)
// DO
#define SYSTEM_LED				PA_15
#define SYSTEM_LED_CTRL			PAout(15)

// DI


// DAC
#define LED_LIGHT					PA_4
#define LED_COLOR					PA_5


#if (UART1_EN)
#define UART1_TX_PIN			    PA_9
#define UART1_RX_PIN			    PA_10
#endif
#if (UART2_EN)
#define UART2_TX_PIN			    PA_2
#define UART2_RX_PIN			    PA_3
#endif
#if (UART3_EN)
#define UART3_TX_PIN			    PB_10
#define UART3_RX_PIN			    PB_11
#endif
#if (UART4_EN)
#define UART4_TX_PIN			    PC_10
#define UART4_RX_PIN			    PC_11
#endif
#if (UART5_EN)
#define UART5_TX_PIN			    PC_12
#define UART5_RX_PIN			    PD_2
#endif

#if (I2C1_EN)
#define I2C1_SCL					PB_6
#define I2C1_SDA					PB_7
#endif

#if (SPI2_EN)
#define SPI2_MOSI                 	PB_15
#define SPI2_MISO               	PB_14
#define SPI2_SCLK                 	PB_13
#define SPI2_NSS                   	PB_12
#endif

#if (CAN_EN)
#define CAN_TX						PA_12
#define CAN_RX						PA_11
#endif


extern Gpio_t SystemLed;
#endif


#endif	/* __BOARD_H */

